<legend><h3>SMS > Pesan Terkirim</h3></legend>
<?php if (isset($terkirim)) { ?>
    <table class="table table-hover">
        <tr>
            <th align="center">Nomor Penerima</th>
            <th align="center">Isi Pesan</th>
            <th align="center">Tanggal Terkirim</th>
        </tr>

        <?php foreach ($table as $sent) {
            ?>
            <tr>
                <td width="25%"><?php
                    if ($sent->DestinationNumber == "") {
                        echo "--Unknown Number";
                    } else {
                        echo $sent->DestinationNumber;
                    }
                    ;
                    ?>
                </td>
                <td width="50%"><?php
                    if ($sent->TextDecoded == "") {
                        echo "--Blank--";
                    } else {
                        echo $sent->TextDecoded;
                    }
                    ?>
                </td>
                <td width="25%"><?php echo $sent->SendingDateTime; ?></td>
            </tr>
            <?php
        }
        ?>
    </table> 
<?php
} else {
    echo "Data Kosong";
}
echo $links;
?>
<br/>